package com.c.repository;

import com.c.pojo.entity.Account;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author bysun
 */
public interface AccountRepository extends JpaRepository<Account, Integer> {

    /**
     * 查询全部
     * @return
     */
    List<Account> findAccountsByIsDeleteFalse();

    /**
     * 根据accountId 获取 account
     * @param id
     * @return
     */
    Account getAccountByAccountId(String id);
}
